package com.springboot.springboot4.exeception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * @ClassName:
 * @author: CKC
 * @DateTime: 2021/1/21 13:17
 * <p>
 * 自定义异常   用户太多异常（测试）
 * @ResponseStatus 响应状态码信息
 */


@ResponseStatus(value = HttpStatus.FORBIDDEN, reason = "用户数量太多")
public class UserTooManyException extends RuntimeException {
    public UserTooManyException() {
    }
    
    public UserTooManyException(String message) {
        super(message);
    }
}
